package emailBox

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type EmailINBOXRouter struct {
}

// InitEmailINBOXRouter 初始化 EmailINBOX 路由信息
func (s *EmailINBOXRouter) InitEmailINBOXRouter(Router *gin.RouterGroup) {
	emailINBOXRouter := Router.Group("emailINBOX").Use(middleware.OperationRecord())
	emailINBOXRouterWithoutRecord := Router.Group("emailINBOX")
	var emailINBOXApi = v1.ApiGroupApp.EmailboxApiGroup.EmailINBOXApi
	{
		emailINBOXRouter.POST("createEmailINBOX", emailINBOXApi.CreateEmailINBOX)   // 新建EmailINBOX
		emailINBOXRouter.DELETE("deleteEmailINBOX", emailINBOXApi.DeleteEmailINBOX) // 删除EmailINBOX
		emailINBOXRouter.DELETE("deleteEmailINBOXByIds", emailINBOXApi.DeleteEmailINBOXByIds) // 批量删除EmailINBOX
		emailINBOXRouter.PUT("updateEmailINBOX", emailINBOXApi.UpdateEmailINBOX)    // 更新EmailINBOX
	}
	{
		emailINBOXRouterWithoutRecord.GET("findEmailINBOX", emailINBOXApi.FindEmailINBOX)        // 根据ID获取EmailINBOX
		emailINBOXRouterWithoutRecord.GET("getEmailINBOXList", emailINBOXApi.GetEmailINBOXList)  // 获取EmailINBOX列表
	}
}
